
<div class="layui-form-item">
  <label class="layui-form-label">跳转链接<span></span></label>
  <div class="layui-input-inline">
	<input type="text"  placeholder="" name="gourl" id="info_gourl" class="layui-input modelform_gourl" value="{$r?$r['gourl']:''}" style="" autocomplete="off">
  </div>
</div>	
<div class="layui-form-item">
  <label class="layui-form-label">英文标题<span></span></label>
  <div class="layui-input-inline">
	<input type="text"  placeholder="" name="entitle" id="info_entitle" class="layui-input modelform_entitle" value="{$r?$r['entitle']:''}" style="" autocomplete="off">
  </div>
</div>	
<div class="layui-form-item">
  <label class="layui-form-label">图标<span></span></label>
  <div class="layui-input-inline file-upload">
		<input type="text" name="icon" id="info_icon" value="{$r?$r['icon']:''}" autocomplete="off" class="layui-input"/>
		<div class="layui-btn-group">
			<button type="button" class="layui-btn" onclick="previewImg('info_icon')"><i class="layui-icon">&#xe64a;</i>预览</button>
			<button type="button" class="layui-btn fastupimg" data-input_id="info_icon" data-listtype="img" id="info_icon_Picker"><i class="layui-icon">&#xe608;</i>上传</button>
			<button type="button" class="layui-btn" onClick="selectfile('info_icon','','img')"><i class="layui-icon">&#xe67c;</i>浏览</button>
		</div>
  </div>
</div>	
<div class="layui-form-item">
  <label class="layui-form-label">描述<span></span></label>
  <div class="layui-input-inline">
        <div class="news_editor" editor_name="description1" editor_width="0%" editor_height="500" imgwidth="1000" imgheight=""><script id="description1" name="description1" type="text/plain">{$r?htmlspecialchars_decode($r['description1']):''}</script></div>
        远程图片保存本地<input type="checkbox" name="description1_saveFile" lay-ignore value="1" checked> &nbsp;&nbsp;
        提取第一张图做为缩略图（如果缩略图为空的情况下）<input type="checkbox" lay-ignore  name="description1_getFirstImg" value="1">   
  </div>
</div>	
<div class="layui-form-item">
  <label class="layui-form-label">是否新窗口打开<span></span></label>
  <div class="layui-input-inline">
	<input type="text"  placeholder="" name="blank" id="info_blank" class="layui-input modelform_blank" value="{$r?$r['blank']:''}" style="" autocomplete="off">
  </div>
</div>	
<div class="layui-form-item">
  <label class="layui-form-label">头部图片<span></span></label>
  <div class="layui-input-inline file-upload">
		<input type="text" name="imagep" id="info_imagep" value="{$r?$r['imagep']:''}" autocomplete="off" class="layui-input"/>
		<div class="layui-btn-group">
			<button type="button" class="layui-btn" onclick="previewImg('info_imagep')"><i class="layui-icon">&#xe64a;</i>预览</button>
			<button type="button" class="layui-btn fastupimg" data-input_id="info_imagep" data-listtype="img" id="info_imagep_Picker"><i class="layui-icon">&#xe608;</i>上传</button>
			<button type="button" class="layui-btn" onClick="selectfile('info_imagep','','img')"><i class="layui-icon">&#xe67c;</i>浏览</button>
		</div>
  </div>
</div>	
<div class="layui-form-item">
	<label class="layui-form-label">多图上传<span></span></label>
    <div class="layui-input-inline morepic">
        <div class="morepic_box">
            <div class="piclist" data-field="images">
                <ul id="images_piclist_ul">
                    <?php
                    if($r){
                        $morepic=$r['images'];
                        $morepic_arr=explode("\r\n",$morepic);
                        foreach($morepic_arr as $v){
                            if(!$v){break;};
                            $vs=explode("||",$v);
                    ?>
                    <li title="拖动我是可以排序的哦" draggable="false">
                        <a class="piclist_img images_fancybox" rel="images_rel" title="<?=$vs[2]?>" href="<?=$vs[1]?>">
                            <img src="<?=$vs[0]?>" draggable="false">
                            <input type="hidden" name="images_smallimg[]" value="<?=$vs[0]?>">
                            <input type="hidden" name="images_bigimg[]" value="<?=$vs[1]?>">
                        </a>
                        <div class="piclist_title"><input type="text" name="images_imgname[]" value="<?=$vs[2]?>"></div>
                        <div class="file-panel"><span class="cancel" onclick="delete_li(this)" title="删除图片">删除</span></div>
                    </li>
                    <?php
                        }                     
                    }
                    ?>
                    <li class="add_morepic" id="images_add_button" title="增加图片" onclick="selectfiles('images',moreimg,'img','1000','')">
                        <div class="piclist_img">+</div>
                    </li>                                                
                    <div class="clear"></div>
                </ul>
            </div>                                        
        </div>
    </div>
</div>
<div class="layui-form-item">
  <label class="layui-form-label">头部标题<span></span></label>
  <div class="layui-input-inline">
	<input type="text"  placeholder="" name="head_title" id="info_head_title" class="layui-input modelform_head_title" value="{$r?$r['head_title']:''}" style="" autocomplete="off">
  </div>
</div>	